package com.gy.config;

import cn.dev33.satoken.stp.StpInterface;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class StpInterfaceImpl implements StpInterface {
    @Override
    public List<String> getPermissionList(Object loginId, String loginType) {
        System.out.println("查询具体权限");
        System.out.println(loginId);
        return null;
    }

    @Override
    public List<String> getRoleList(Object loginId, String loginType) {
        System.out.println("查询角色权限");
        List<String> list = new ArrayList<String>();
        list.add("admin");
        list.add("super-admin");
        return list;
    }
}
